<div id="demo7"></div>
    <script src="<?=SITE_BASE_URL?>/assets/plugins/dyj/layui_url.js"></script>
    <script>
    $(function(){
        //分页
        layui.use('laypage', function(){
            var laypage = layui.laypage;
            var param = GetRequest();
            //总页数大于页码总数
            laypage.render({
                elem: 'demo7'
                ,count:<?=$data['total']?>//数据总数
                ,curr: <?=$page?>
        ,limit:<?=$limit?>
        ,layout:  ['count', 'prev', 'page', 'next','limit', 'refresh', 'skip']
                ,jump: function(obj,first){
                //首次不执行
                if(!first){
                    var url = window.location.href;
                    url = url.substring(0, url.lastIndexOf('?'));

                    param['page'] = obj.curr;
                    param['limit'] = obj.limit;
                    window.location.href = createURL(url,param);
                }
            }
        });
        });
    })
    </script>





class="tom_show_image"
class="video<?=$k+1;?>"
<input type="hidden" value="<?=$v['video_url']?>" class="content<?=$k+1;?>">








<script>
    //移入缩略图显示和隐藏小手
    $('.video'+n).mouseover(function(){
        $(this).css("cursor","pointer")
    }).mouseout(function(){
        $(this).css("cursor","")
    })
    //视频放大
    $('.video'+n).click(function(){
        var content=$('.content'+n).val();
        var html="";
        html+="<video src='"+content+"' style=\"width:560px;height:400px;\" controls='controls' autoplay></video>"
        layer.open({
            title:'视频播放'
            ,content: html
            ,area:['600px','540px']
            ,btn: ['关闭']
            ,yes: function(index, layero){
//按钮【按钮一】的回调
                layer.close(index)
            }
            ,cancel: function(){
//右上角关闭回调

//return false 开启该代码可禁止点击该按钮关闭
            }
        });
    })
</script>


























<script>
    //定义一个51的jquery数组
    var arr=[];
    for(var i=1;i<51;i++){
        arr.push(i)
    }
    $.each(arr,function(i,n){
        var video_uuid=$(".video_uuid"+n).val();
        //弃用
        $(".drop"+n).click(function(){
            $.ajax({
                type: "post",
                data: {video_uuid:video_uuid},
                dataType: "json",
                url: "<?=base_url("material/material/drop_make_material")?>",
                success: function (res) {
                    if(res.code==0){
                        layer.msg(res.msg, {time:1000},function(){
                            window.location.reload()
                        });
                    }else{
                        layer.msg(res.msg, {time: 2000});
                    }
                }
            })
        })
    })
</script>



